DRAKHYSYS ALL EDITORS V4.8.8.53 — IWD2 COMPLETE AREA DEPENDENCY UPGRADE

Purpose
-------
Upgrade the IWD2 area rename converter so a selected IWD2 area can be prepared
as a complete BG2-side conversion workspace before anything is copied into BG2.

What changed
------------
1. Exact required-BIF inspection for every selected IWD2 area.
   The tool now tells you which BIF contains each required ARE/WED/TIS/MOS/BMP/
   BCS/CRE/DLG resource and whether that BIF is actually present in the chosen
   IWD2 root/data folder.

2. Direct IWD2 area dependency extraction.
   For IWD2 ARE V9.1 files, the converter reads:
     - area script
     - actor CRE references
     - actor BCS script slots
     - actor DLG references
     - spawn-point CRE references

3. CRE dependency follow-up.
   Referenced IWD2 CRE V2.2 files are inspected for their own script and dialog
   references, and those BCS/DLG files are collected too.

4. Area-name patching remains active in compiled structured resources.
   ARxxxx -> IWxxxx replacement is equal-length, so selected IWD2 scripts and
   other structured files can be patched without resizing their binary records.

5. New output folder:
     area_dependencies/IWxxxx/
   This contains the direct CRE/BCS/DLG dependencies used by each converted area.

6. New CHECK REQUIRED BIFS button in the IWD2 converter.

AR1000 / IW1000 requirement discovered from the supplied original IWD2 CHITIN.KEY
---------------------------------------------------------------------------------
The original IWD2 KEY maps the first area resources as follows:

    AR1000.ARE       -> data/ARE.bif
    AR1000.BCS       -> data/BCS.bif
    AR1000.WED       -> data/AR1000.bif
    AR1000.MOS       -> data/AR1000.bif
    AR1000.TIS       -> data/AR1000.bif
    AR1000HT.BMP     -> data/AR1000.bif
    AR1000LM.BMP     -> data/AR1000.bif
    AR1000SR.BMP     -> data/AR1000.bif

The direct AR1000 actors use CRE.bif, BCS.bif and DLG.bif as dependencies.

Important for the first test
----------------------------
The files supplied for this upgrade contain ARE.bif, CRE.bif, BCS.bif, DLG.bif
and AREini.bif, but not data/AR1000.bif.

Therefore the new tool will explicitly report data/AR1000.bif as MISSING.
That archive is the source of the original IWD2 WED/TIS/MOS/HT/LM/SR graphics
for AR1000. If loose AR1000.WED/TIS/MOS files are present, the converter can use
those loose files, but the three companion BMP maps still require their source
or loose copies.

Output
------
IWD2_CONVERTED_FOR_BG2/
    override_ready/
        IW1000.ARE
        IW1000.WED
        IW1000.TIS
        IW1000.MOS
        IW1000HT.BMP
        IW1000LM.BMP
        IW1000SR.BMP
        IW1000.BCS
        ...

    area_dependencies/
        IW1000/
            10HEDRON.CRE
            10HEDRON.DLG
            ...
            referenced BCS scripts

    patched_references/
        Other IWD2 structured resources containing remapped area references.

    IWD2_AREA_MAPPING.json
    IWD2_CONVERSION_REPORT.txt

Safety
------
Original IWD2 files are never modified. The conversion workspace is separate.
Only after the converted resources work correctly should they be copied to BG2
override or packed into Drakhysys.bif.

Compatibility
-------------
This upgrade solves resource naming, direct dependency collection and area-name
reference patching. It does not automatically translate every IWD2-only engine
opcode, rule, CRE structure or script semantic into BG2EE behavior.
